package com.soladhoc.annonces.client.view.ui;

import com.google.gwt.cell.client.Cell;
import com.google.gwt.text.shared.SafeHtmlRenderer;
import com.google.gwt.user.cellview.client.Column;
import com.soladhoc.annonces.shared.proxy.AnnonceProxy;

public class AnnonceColumn extends Column<AnnonceProxy, AnnonceProxy>
{
    public AnnonceColumn(Cell<AnnonceProxy> cell)
    {
        super(cell);
    }


    public AnnonceColumn(AnnonceCellTable annoncesTable, SafeHtmlRenderer<AnnonceProxy> renderer)
    {
        super(new AnnonceCell(annoncesTable, renderer));
    }


    @Override
    public AnnonceProxy getValue(AnnonceProxy object)
    {
        return object;
    }
}
